<?php
namespace app\common\model;

class User extends Base
{
    protected $name = 'user';

    public function getAvatarAttr($val){
        if(!$val){
            return '';
        }

        return config('app.url') . $val;
    }
}